home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: fwrite help?
- Date: Sat, 24 Feb 96 15:11:49 GMT
- Organization: none
- Message-ID: <825174709snz@genesis.demon.co.uk>
- References: <4fmaig$7of@news.global1.net> <harmon.824165113@pegasus.montclair.edu> <danpop.824668361@rscernix> <824914553snz@genesis.demon.co.uk> <danpop.825021043@rscernix>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <danpop.825021043@rscernix> danpop@mail.cern.ch "Dan Pop" writes:
-
- >In <824914553snz@genesis.demon.co.uk> fred@genesis.demon.co.uk (Lawrence Kirby)
- > writes:
- >
- >>In article <danpop.824668361@rscernix> danpop@mail.cern.ch "Dan Pop" writes:
- >>
- >>>If they succeed, both forms are equivalent.
- >>
- >>If they succeed one will have a return value of 1, the other of 8.
- >
- >But you don't care, because the respective values mean that all the data
- >have been successfully written, so they _are_ equivalent.
-
- I do care because how I test for success depends on the form I use. You're
- correct that the 2 forms produce the same side-effects. However they
- produce a different result so are no more equivalent than i++ vs. ++i.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-